<?php
/**
 *
 *
 */
namespace Yz\modules\Users;
class Controller_Logout
    extends \Yz_Controller_Templated
{

    /**
     *
     */
    public function doGet( \Yz_Array $args )
    {
        debug();
        $user = \Yz_User_Default::getInstance();
        $user->logout();

        $url = $this->getRequest()->getWebPrefix();

        $template = $this->selectTemplate();
        $template->url = $url;
        $this->getView()
            ->setRedirect( $url )
            ;
        return $this->outputTemplate($template);
    }


}
